<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>form表单</title>
</head>
<body>
<form action="http://www.baidu.com">
    <!--
        maxlength最大字符长度 placeholder 占位文本

    -->
    用户名:<input type="text" name="username"
                maxlength="5" placeholder="请输入用户名"
                value="abc" readonly="readonly"><br>
    密码:<input type="password" name="password"><br>
    <!-- checked默认选中 value设置提交的值 必须写否则提交on -->
    性别:<input type="radio"  name="gender"  value="m">男
    <input name="gender" checked="checked" type="radio" value="w">女<br>
    爱好:<input type="checkbox" name="hobby" value="cy">抽烟
    <input type="checkbox" name="hobby" value="hj">喝酒
    <input type="checkbox" checked="checked" name="hobby" value="tt">烫头<br>
    生日:<input type="date" name="birthday"><br>
    靓照:<input type="file" name="pic"><br>
    所在城市:
    <select name="city">
        <option value="bj" selected="selected">北京</option>
        <option value="sh">上海</option>
        <option value="gz">广州</option>
    </select>

    <br><input type="submit" value="注册">



</form>


</body>
</html>